//Will Zepeda
//GSP-362
//Button.cpp
#include "Button.h"
#include "DirectX.h"

Button::~Button()
{

}
void Button::loadTexture(char * aFileName)
{
	mButtonInfo.loadTexture(aFileName);
}

void Button::setPos(int aX, int aY)
{
	mButtonInfo.mPosOfCenter.X = aX;
	mButtonInfo.mPosOfCenter.Y = aY;
}
void Button::makeTranslucent()
{
	//mAlpha = 50;
}
void Button::makeSolid()
{
	//mAlpha = 255;
}
bool Button::isSolid()
{
	//if(mAlpha == 255)
	//	return true;
	return false;
}
void Button::setScale(float aScale)
{
	mButtonInfo.mScale = mButtonInfo.mScaleY = aScale;
}
void Button::setScale(float xScale, float yScale)
{
	mButtonInfo.mScale = xScale;
	mButtonInfo.mScaleY = yScale;
}
bool Button::inButton(POINT mouse)
{
	return mButtonInfo.inSprite(mouse);
}